package com.xinruke.hostels.system.manage.interfaces.api;

import com.xinruke.hostels.common.vo.ResultVO;
import com.xinruke.hostels.system.manage.interfaces.dto.RoomStatusColorAddDefaultDTO;
import com.xinruke.hostels.system.manage.interfaces.dto.RoomTypeDetailQueryDTO;
import com.xinruke.hostels.system.manage.interfaces.dto.RoomTypeDetailQueryResultDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @ClassName SystemManageApi
 * @CreateDate 2019/6/28
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 系统管理API
 */
@FeignClient(value = "system-manage-service", fallbackFactory = SystemManageFallback.class)
public interface SystemManageApi {
    @PostMapping("/room-type/detail")
    @ApiOperation(value = "房间类别详情")
    ResultVO<RoomTypeDetailQueryResultDTO> getDetail(@Valid @RequestBody RoomTypeDetailQueryDTO underHotelQueryDTO);

    @PostMapping(value = "/room-status-color/addDefault")
    @ApiOperation("添加酒店时调用，增加房态颜色的默认数据")
    public ResultVO addDefault(@RequestBody @Valid RoomStatusColorAddDefaultDTO params);
}
